//package com.ly.mpayment.persist.service.ordermatch;
//
//import java.io.Serializable;
//import java.util.List;
//
//import org.springframework.stereotype.Service;
//
//import com.ly.mpayment.core.util.StringUtils;
//import com.ly.mpayment.persist.entity.OrderMatchDetail;
//import com.ly.mpayment.persist.service.AbstractService;
//
//@Service
//public class OrderMatchDetailServiceImpl extends AbstractService<OrderMatchDetail, Serializable> implements IOrderMatchDetailService {
//
//	@Override
//	public List<OrderMatchDetail> findByDownFlow(String downFlowUUid) {
//		return this.find("select o from OrderMatchDetail o left join fetch o.upshopproduct up left join fetch up.user where up.status = 1 and o.downRechargeFlow.downorderuuid = ?", downFlowUUid);
//	}
//
//	@Override
//	public boolean saveOrderMatch(OrderMatchDetail detail) {
//		if(detail != null){
//			this.saveOrUpdate(detail);
//			return true;
//		}
//		return false;
//	}
//
//	@Override
//	public boolean updateOrderMatch(OrderMatchDetail detail) {
//		if(detail != null){
//			this.saveOrderMatch(detail);
//			return true;
//		}
//		return false;
//	}
//
//	@Override
//	public List<OrderMatchDetail> findNotExecuteMatch(String downFlowUUid) {
//		return this.find("select o from OrderMatchDetail o left join fetch o.upshopproduct where o.execute = 0 and o.downRechargeFlow.downorderuuid = ?", downFlowUUid);
//	}
//
//	@Override
//	public boolean deleteMatch(String matchinguuid) {
//		if(!StringUtils.isBlank(matchinguuid)){
//			this.deleteHql("delete from OrderMatchDetail where matchingStrategy.matchinguuid ='"+matchinguuid+"'");
//			return true;
//		}
//		return false;
//	}
//
//}
